package com.sqbr.video;


import com.sqbr.video.core.constants.KunVideoConstants;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@MapperScan(basePackages = KunVideoConstants.BASE_COMPONENT_SCAN_PATH+".mapper")
@SpringBootApplication(scanBasePackages = KunVideoConstants.BASE_COMPONENT_SCAN_PATH)
@ServletComponentScan(basePackages = KunVideoConstants.BASE_COMPONENT_SCAN_PATH)
@EnableAsync
@EnableTransactionManagement
public class KunVideoApplication {
    public static void main(String[] args) {
        System.out.println(Thread.currentThread().getContextClassLoader());
        SpringApplication.run(KunVideoApplication.class);
    }
}
